<template>
  <div>
    <button @click="btn">测试</button>
    <div v-if="bol">收到回调</div>
  </div>
</template>

<script>
import { getAppToken } from "@/utils/getAppToken";
export default {
  data() {
    return {
      bol: false,
    };
  },
  methods: {
    btn() {
      getAppToken().then((token) => {
        this.bol = true;
        alert(token);
      });
    },
  },
};
</script>

<style>
</style>